import sys
sys.path.append("../..")
from common.helper import Helper
from db.mysql import MysqlClient
class Arrangement( object ):
    def __init__(self):
        self.mysql = MysqlClient()
        self.name = "平安一年女性特定疾病保险"
    # 拉取数据
    def pullData(self, data={}):
        for item in Helper.selectData(self.name, self.mysql):
            data["name"] = self.name
            data["company"] = "平安保险"
            data["year"] = item["year"]
            data["gender"] = "0"
            data["payType"] = item["payType"]
            data["expire"] = item["expire"]
            data["specialWomenDisease"] = "10w"
            data["price"] = item["price"]
            Helper.mergeTable("medical",self.mysql,data )
